<div class="login">
  <h2>Acced Form</h2>
  <div class="login-top">
    <h1>账户</h1>
    <%= form_for @user, url: {action: :create} do |f| %>
        <!--这里的字段名称其实要与数据表（模型类）中的字段相同-->
        <%= f.label :email %>
        <%= f.text_field :email %>

        <%= f.label :password %>
        <%= f.password_field :password %>

        <%= f.label :password_confirmation, 'Confirmation' %>
        <%= f.password_field :password_confirmation %>

        <div class="forgot">
          <a href="#">忘记密码</a>
          <%= f.submit('注册') %>
        </div>
    <% end %>



  </div>
  <div class="login-bottom">
    <h3>已有账户？ &nbsp;<a href="<%= new_admin_session_path  %>">登录</a>&nbsp Here</h3>
  </div>
</div>
